﻿@model MvcWeb.ViewModels.Home.ChangePasswordModel
@{
    ViewBag.Title = "修改密码";
}
<style type="text/css">
    table td { padding: 3px 5px; }
</style>
@using (Html.BeginForm())
{
    <div style="height: 40px; line-height: 40px; font-weight: bold; color: Red; padding-left: 20px;">
        <h2>
            @if (IsPost)
            {
                @Model.Messages
            }</h2>
    </div>
    <table>
        <tr>
            <td class="editor-label">@Html.LabelFor(m => m.OldPwd)</td>
            <td>@Html.PasswordFor(m => m.OldPwd)</td>
            <td>@Html.ValidationMessageFor(m => m.OldPwd)</td>
        </tr>
        <tr>
            <td class="editor-label">@Html.LabelFor(m => m.NewPwd)</td>
            <td>@Html.PasswordFor(m => m.NewPwd)</td>
            <td>@Html.ValidationMessageFor(m => m.NewPwd)</td>
        </tr>
        <tr>
            <td class="editor-label">@Html.LabelFor(m => m.ConfirmPwd)</td>
            <td>@Html.PasswordFor(m => m.ConfirmPwd)</td>
            <td>@Html.ValidationMessageFor(m => m.ConfirmPwd)</td>
        </tr>
        <tr>
            <td></td>
            <td colspan="2">
                <input type="submit" value="确定修改" class="btn_green" />
            </td>
        </tr>
    </table>
}